import sys
import os


print(os.path.dirname(__file__) )
print(__file__)
print(sys.argv[0])
print(os.path.dirname(sys.argv[0]))

# c:\Users\Administrator\Desktop\DEV\Set\[TEST]
# c:\Users\Administrator\Desktop\DEV\Set\[TEST]\地址.py
# c:/Users/Administrator/Desktop/DEV/Set/[TEST]/地址.py
#

# PS C:\Users\Administrator\Desktop\DEV\Set> .\dist\地址.exe
# C:\Users\ADMINI~1\AppData\Local\Temp\_MEI198162
# C:\Users\ADMINI~1\AppData\Local\Temp\_MEI198162\地址.py
# C:\Users\Administrator\Desktop\DEV\Set\dist\地址.exe